欢迎，<?php echo $this->user["username"] ?>
	<ul id="menu">
		<li><a href="<?php echo Url::generate('User', 'View', array('id' => $this->context->cookie['user_id'])) ?>" target="_blank">查看个人资料</a></li>
		<li><a href="<?php echo Url::generate('User', 'EditProfile', array('id' => $this->context->cookie['user_id'])) ?>" target="mainFrame">修改资料</a></li>
		<li><a href="<?php echo Url::generate('User', 'ChangePassword', array('id' => $this->context->cookie['user_id'])) ?>" target="mainFrame">重设密码</a></li>
		<li><a href="<?php echo Url::generate('User', 'DoSignout') ?>" target="_top">退出</a></li>
		<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=pm" target="mainFrame">站内短信</a></li>
		<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=friend&view=me" target="mainFrame">我的好友</a></li>
		<li>
			<a href="<?php echo Config::$app['comsenz']['dz_url_root'] ?>my.php" target="mainFrame">我的论坛</a>
			<ul>
				<li>
					<a href="<?php echo Config::$app['comsenz']['dz_url_root'] ?>my.php?item=threads" target="mainFrame">我的帖子</a>
					<ul>
						<li><a href="<?php echo Config::$app['comsenz']['dz_url_root'] ?>my.php?item=threads" target="mainFrame">我的主题</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['dz_url_root'] ?>my.php?item=posts" target="mainFrame">我的回复</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['dz_url_root'] ?>my.php?item=polls&type=poll" target="mainFrame">我的投票</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['dz_url_root'] ?>my.php?item=reward&type=stats" target="mainFrame">我的悬赏</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['dz_url_root'] ?>my.php?item=activities&type=orig" target="mainFrame">我的活动</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['dz_url_root'] ?>my.php?item=debate&type=orig" target="mainFrame">我的辩论</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['dz_url_root'] ?>my.php?item=tradestats" target="mainFrame">我的商品</a></li>
					</ul>
				</li>
				<li><a href="<?php echo Config::$app['comsenz']['dz_url_root'] ?>my.php?item=favorites&type=thread" target="mainFrame">我的收藏</a></li>
				<li><a href="<?php echo Config::$app['comsenz']['dz_url_root'] ?>my.php?item=subscriptions&type=forum" target="mainFrame">我的订阅</a></li>
			</ul>
		</li>
		<li>
			<a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php" target="mainFrame">我的空间</a>
			<ul>
				<li>
					<a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=doing&view=me" target="mainFrame">记录</a>
					<ul>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=doing" target="mainFrame">我的记录</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=doing&view=all" target="mainFrame">大家的记录</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=mood" target="mainFrame">同心情的朋友</a></li>
					</ul>
				</li>
				<li>
					<a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=album" target="mainFrame">相册</a>
					<ul>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=album&view=me" target="mainFrame">我的相册</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=album&view=all" target="mainFrame">大家的相册</a></li>
					</ul>
				</li>
				<li>
					<a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=blog" target="mainFrame">日志</a>
					<ul>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=blog&view=me" target="mainFrame">我的日志</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=blog&view=trace" target="mainFrame">我踩过的日志</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=blog&view=all" target="mainFrame">大家的日志</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>cp.php?ac=blog" target="mainFrame">发表日志</a></li>
					</ul>
				</li>
				<li>
					<a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=thread" target="mainFrame">群组</a>
					<ul>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=mtag" target="mainFrame">我的群组</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=mtag&view=hot" target="mainFrame">热门群组</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=thread" target="mainFrame">群组最新话题</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=thread&view=me" target="mainFrame">我发起话题</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>cp.php?ac=mtag" target="mainFrame">创建我的群组</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>cp.php?ac=thread" target="mainFrame">发表群组话题</a></li>
					</ul>
				</li>
				<li>
					<a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=share" target="mainFrame">分享</a>
					<ul>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=share&view=me" target="mainFrame">我的分享</a></li>
						<li><a href="<?php echo Config::$app['comsenz']['uch_url_root'] ?>space.php?do=share&view=all" target="mainFrame">大家的分享</a></li>
					</ul>
				</li>
			</ul>
		</li>
	</ul>
<script type="text/javascript">
$(document).ready(function() {
	$("#menu").treeview({
		collapsed: true,
		animated: "medium",
		persist: "location"
	});
});
</script>